\hypertarget{classaetycoon_1_1_key_property}{
\section{aetycoon.KeyProperty Class Reference}
\label{classaetycoon_1_1_key_property}\index{aetycoon::KeyProperty@{aetycoon::KeyProperty}}
}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
def \hyperlink{classaetycoon_1_1_key_property_a8b9af6fd28f1a7011d7b89395ac5799c}{validate}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\begin{DoxyVerb}A property that stores a key, without automatically dereferencing it.

Example usage:

>>> class SampleModel(db.Model):
...   sample_key = KeyProperty()

>>> model = SampleModel()
>>> model.sample_key = db.Key.from_path("Foo", "bar")
>>> model.put() # doctest: +ELLIPSIS
datastore_types.Key.from_path(u'SampleModel', ...)

>>> model.sample_key # doctest: +ELLIPSIS
datastore_types.Key.from_path(u'Foo', u'bar', ...)
\end{DoxyVerb}
 

\subsection{Member Function Documentation}
\hypertarget{classaetycoon_1_1_key_property_a8b9af6fd28f1a7011d7b89395ac5799c}{
\index{aetycoon::KeyProperty@{aetycoon::KeyProperty}!validate@{validate}}
\index{validate@{validate}!aetycoon::KeyProperty@{aetycoon::KeyProperty}}
\subsubsection[{validate}]{\setlength{\rightskip}{0pt plus 5cm}def aetycoon.KeyProperty.validate (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{value}
\end{DoxyParamCaption}
)}}
\label{classaetycoon_1_1_key_property_a8b9af6fd28f1a7011d7b89395ac5799c}
\begin{DoxyVerb}Validate the value.

Args:
  value: The value to validate.
Returns:
  A valid key.
\end{DoxyVerb}
 

The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
aetycoon/\_\-\_\-init\_\-\_\-.py\end{DoxyCompactItemize}
